import { GET } from '@/utils/request'

/**
 * 获取所有比赛
 * @param {Number} pageNum
 * @param {Number} paegSize
 */
export const getComps = (data) => GET('/competition', data)

/**
 * 获取单个比赛具体信息
 * @param {Number} id 比赛id
 */
export const getComp = (id) => GET(`/competition/${ id } `, {})
